#coding:utf-8
__author__ = 'hl'

class PackageUIData:
    def __init__(self,rwaAppPath,saveAppsPath,gridLbls,gridDatas):
        self.__rwaAppPath = rwaAppPath
        self.__saveAppsPath= saveAppsPath
        self.__gridLbls=gridLbls
        self.__gridDatas=gridDatas

    def setRwaAppPath(self,rwaAppPath):
        self.__rwaAppPath=rwaAppPath
        self.__subjectForRwaAppPath.notify(self.__rwaAppPath)

    def setGridDatas(self,datas):
        self.__gridDatas=datas

    def setSaveAppsPath(self,saveAppsPath):
        self.__saveAppsPath=saveAppsPath
        self.__subjectForSaveAppsPath.notify(self.__saveAppsPath)

    def setRwaAppPathOnly(self,rwaAppPath):
        self.__rwaAppPath=rwaAppPath

    def setSaveAppsPathOnly(self,saveAppsPath):
        self.__saveAppsPath=saveAppsPath

    def getRwaAppPath(self):
        return self.__rwaAppPath

    def getSaveAppsPath(self):
        return self.__saveAppsPath

    def getGridLbls(self):
        return self.__gridLbls

    def getGridDatas(self):
        return self.__gridDatas

    def addDataForGridDatas(self,aRow):
        self.__subjectAsAddingData.notify(aRow)

    def updateGridDatas(self,datas):
        self.__subjectAsUpdateDatas.notify(datas)

    def bindSubjectForRwaAppPath(self,subject):
        self.__subjectForRwaAppPath= subject


    def bindSubjectForSaveAppsPath(self,subject):
        self.__subjectForSaveAppsPath= subject

    def bindSubjectForAddingData(self,subject):
        self.__subjectAsAddingData=subject

    def bindSbjectForUpdateGridDatas(self,subject):
        self.__subjectAsUpdateDatas=subject